
:host {
    height: 100%;
}

.preview-image {
    width: 100%;
    max-width: 750px;
    height: 100%;
    min-height: 60vh;
    overflow: auto;
    text-align: center;
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.1);
    background: url('');
    margin-top: var(--space-unit);
    flex: 1;

    &.centered {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    vdr-focal-point-control {
        position: relative;
        box-shadow: 0px 0px 10px -3px rgba(0, 0, 0, 0.15);
    }

    .image-wrapper {
        position: relative;
    }

    .asset-image {
        width: 100%;

        &.tiny { max-width: 50px; max-height: 50px; }
        &.thumb { max-width: 150px; max-height: 150px; }
        &.small { max-width: 300px; max-height: 300px; }
        &.medium { max-width: 500px; max-height: 500px; }
        &.large { max-width: 800px; max-height: 800px; }
    }

    .focal-point-info {
        position: absolute;
        display: flex;
        right: 0;
    }
}

.controls {
    display: flex;
    flex-direction: column;
    margin-inline-start: 12px;
    min-width: 15vw;
    max-width: 25vw;
    transition: opacity 0.3s;

    &.fade {
        opacity: 0.5;
    }

    .name-input {
        margin-bottom: 24px;
    }

    ::ng-deep .clr-control-container {
        width: 100%;

        .clr-input {
            width: 100%;
        }
    }

    .elide {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
    }
    .source-link {
        direction: rtl;
    }

    .preview-select {
        display: flex;
        align-items: center;
        clr-select-container {
            margin-inline-end: 12px;
        }
    }
}

.carousel-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    button.carousel-button {
        cursor: pointer;
        width: 30px;
        height: 30px;
        border: none;
        border-radius: 50%;
        text-align: center;
        background-color: var(--color-grey-300);
        &:hover {
            background-color: var(--color-grey-400);;
        }
    }

    .disabled {
        pointer-events: none;
        opacity: 0.4;
    }
}
